using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Test.Log {
	class LocalWebLog {

		static void MainX() {


			DAL dal=new DAL();
			//dal.NonQry("create table stol(inserted datetime,ip varchar(15))");

			string[] files=Directory.GetFiles(@"C:\inetpub\logs\LogFiles\W3SVC1","u_ex14*.log");

			foreach(string file in files)
			{

				Stat users=new Stat();

				string[] lines=File.ReadAllLines(file);

				foreach(string line in lines)
					if(!line.StartsWith("#"))
					{
						string[] arr=line.Split(' ');
						users.Add(arr[7]);
					}

				if(users.Stats.Count>2)
					Console.WriteLine(file+"-"+users.Csv);
			}

		}


	}
}
